﻿
namespace SilverMindMap.Core.Model
{  
    public class Link : ObservableObject
    {
        private readonly Node _firstNode;
        private readonly Node _secondNode;

        public Link(Node firstNode, Node secondNode)
        {
            Guard.ArgumentNotNull(firstNode, "firstNode");
            Guard.ArgumentNotNull(secondNode, "secondNode");

            _firstNode = firstNode;
            _secondNode = secondNode;
        }     

        public Node FirstNode
        {
            get { return _firstNode; }
        }

        public Node SecondNode
        {
            get { return _secondNode; }
        }

        public override string ToString()
        {
            return string.Format("{0} --> {1}", _firstNode.ToString(), _secondNode.ToString());
        }
    }
}
